Screen rotation was using wrong numeric values