Fixed the problem but encountered a different one