fixing planet visual magnitude problem