Thanks to Anjum for his suggestion in the comments. The problem has been solved by removing the front-slash in the rewrite slug. The error was caused by:
'rewrite' => array (
'slug' => 'movies/',
'with_front'=> false
),
The error has been solved by the following modification:
'rewrite' => array (
'slug' => 'movies',
'with_front'=> false
),